/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package calculator;

import java.util.Scanner;
//import java.lang.Integer;

/**
 *
 * @author Iskandar Sarkawi
 */
public class DemoCalculator_UserInput {

    public static void main(String[] args) {


        int number1, number2;

        System.out.println("Enter Number 1: ");
        Scanner in = new Scanner(System.in);
        number1 = Integer.parseInt(in.nextLine());

        System.out.println("Enter Number 2: ");
        Scanner in2 = new Scanner(System.in);
        number2 = Integer.parseInt(in2.nextLine());

        Calculator c = new Calculator(number1, number2);
        System.out.printf("%d plus %d is %d", number1, number2, c.getTotal());

        
    }

}
